package cn.daomeng.firebird.core.environment;

/**
 * 运行环境基础类
 * 
 * @author wf.shu
 * @since 2019年3月6日 上午9:54:35
 * @version 1.0.0
 */
public class CalorieEnvironment {
	private String curEnvironment;
	private boolean develop = false;
	private boolean testing = false;
	private boolean preProd = false;
	private boolean product = false;

	public CalorieEnvironment(String env) {
		this.curEnvironment = env.toUpperCase();
		if ("DEVELOP".equals(curEnvironment)) {
			this.setDevelop(true);
		} else if ("TESTING".equals(curEnvironment)) {
			this.setTesting(true);
		} else if ("PREPROD".equals(curEnvironment)) {
			this.setPreProd(true);
		} else if ("PRODUCT".equals(curEnvironment)) {
			this.setProduct(true);
		}

	}

	public String getCurEnvironment() {
		return curEnvironment;
	}

	public void setCurEnvironment(String curEnvironment) {
		this.curEnvironment = curEnvironment;
	}

	public boolean isDevelop() {
		return develop;
	}

	public void setDevelop(boolean develop) {
		this.develop = develop;
	}

	public boolean isTesting() {
		return testing;
	}

	public void setTesting(boolean testing) {
		this.testing = testing;
	}

	public boolean isPreProd() {
		return preProd;
	}

	public void setPreProd(boolean preProd) {
		this.preProd = preProd;
	}

	public boolean isProduct() {
		return product;
	}

	public void setProduct(boolean product) {
		this.product = product;
	}
}
